/*
 * @Description: 报名支付
 * @Version: 2.0
 * @Autor: Seven
 * @Date: 2020-12-17 17:14:40
 * @LastEditors: Seven
 * @LastEditTime: 2020-12-18 11:59:46
 */
import request from '~/api/request';
// 创建订单
export const createOrder = function(mobile,nickName,topicId,type=1){
    return request.post(`/pc/order/createOrder`,{
        mobile,
        nickName,
        topicId,
        type,
    })
}
// 获取订单详情
export const getOrderInfo = function(orderNo){
    return request.get(`/pc/order/info/${orderNo}`)
}

// 生成支付二维码
export const getEwm = function(orderNo){
    return request.get(`/pc/pay/createNative/${orderNo}`)
}

// 查询订单状态
export const getPayStatus = function(orderNo){
    return request.get(`/pc/order/info/${orderNo}`)
}